home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / make / icmake-6.000 / icmake-6 / icmake / exec / funcbase.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-08  |  597 b   |  26 lines

  1. /*
  2. \funcref{fun\_c\_base}{void fun\_c\_base ()}
  3.     {}
  4.     {}
  5.     {newvar(), change\_base()}
  6.     {fun\_c\_path(), fun\_c\_ext()}
  7.     {funcbase.c}
  8.     {
  9.  
  10.         The last pushed string is taken as a file name. The basename is
  11.         converted to the one but last pushed string. A new {\em e\_str}
  12.         variable is created holding the new string and is returned via {\em
  13.         reg}.
  14.  
  15.     }
  16. */
  17.  
  18. #include "icm-exec.h"
  19.  
  20. void fun_c_base ()
  21. {
  22.     reg = newvar (e_str);
  23.     reg.vu.i->ls.str = change_base (stack [sp].vu.i->ls.str,
  24.                                     stack [sp - 1].vu.i->ls.str);
  25. }
  26.